package com.wyd.wenyongdaAdmin.commons.model.admin.user.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@ToString
@EqualsAndHashCode
@Accessors(chain = true)
public class UserInfoVO implements Serializable {

    private static final long serialVersionUID = -3467256353529877780L;

    private Long id;

    private String username;

    private String nickName;

    private String phoneNumber;

    private Integer gender;

    private String avatar;

    private String email;

    private String description;

    private Long roleId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date lastLogin;

    private Integer isEnabled;
}
